package cn.mmko.domain.strategy.repository;

import cn.mmko.domain.strategy.model.entity.StrategyAwardEntity;
import cn.mmko.domain.strategy.model.entity.StrategyEntity;
import cn.mmko.domain.strategy.model.entity.StrategyRuleEntity;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface IStrategyRepository {
    List<StrategyAwardEntity> queryStrategyAwardList(Long strategyId);

    void storeStrategyAwardSearchTables(String key, Integer rateRange, Map<Integer, Integer> shuffleStrategyAwardSearchTables);

    int getRateRange(Long strategyId);
    int getRateRange(String key);


    Integer getStrategyAwardAssemble(String key, Integer rateKey);

    StrategyEntity queryStrategyEntityByStrategyId(Long strategyId);

    StrategyRuleEntity queryStrategyRule(Long strategyId, String ruleModel);
}
